// Domien Nowicki
#include "QtSpinnerActivateAnimation.h"

QtSpinnerActivateAnimation::QtSpinnerActivateAnimation(): spinner(0)
{
}

QtSpinnerActivateAnimation::QtSpinnerActivateAnimation(const QtSpinnerActivateAnimation& rhs): QtAnimationCommand(rhs), spinner(rhs.spinner)
{
}

QtSpinnerActivateAnimation::~QtSpinnerActivateAnimation()
{
}

void QtSpinnerActivateAnimation::SetSpinner(QtSpinnerSprite* receiver)
{
	spinner = receiver;
}

void QtSpinnerActivateAnimation::Execute()
{
	if (spinner)
	{
		spinner->Rotate();
	}
}

QtAnimationCommand* QtSpinnerActivateAnimation::Clone() const
{
	return new QtSpinnerActivateAnimation(*this);
}
